package com.woniuxy.oa.service;

import com.woniuxy.oa.entity.Employee;
import com.woniuxy.oa.entity.query.EmployeeQuery;

import java.util.List;

/**
 * The interface Employee service.
 *员工Service
 * @author 毓
 */
public interface EmployeeService {
    /**
     * Add.
     * 增加员工
     *
     * @param employee the employee
     */
    void add(Employee employee);

    /**
     * Update employee.
     * 更新员工信息
     *
     * @param employee the employee
     * @return the employee
     */
    void update(Employee employee);

    /**
     * Query list.
     * 根据条件查询员工
     *
     * @param user the user
     * @return the list
     */
    List<Employee> query(EmployeeQuery user);

    /**
     * Gets by id.
     * 根据id查询员工
     *
     * @param id the id
     * @return the by id
     */
    Employee getById(String id);

    /**
     * Lock.
     * 锁定员工
     *
     * @param id the id
     */
    void lock(String id);

    /**
     * Use.
     * 启用员工
     *
     * @param id the id
     */
    void use(String id);
}
